<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Warehouse_id')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-warehouse_id" data-rule="required" data-source="information/warehouse/index" class="form-control selectpage" name="row[warehouse_id]" type="text" value="{$row.warehouse_id|htmlentities}">
        </div>
        <label  class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div  class="col-xs-12 col-sm-4">             
            <select  id="c-type" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
         </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Number')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-number" readonly class="form-control" name="row[number]" type="text" value="{$row.number|htmlentities}">
        </div>
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-name" class="form-control" data-rule="required;" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Switch')}:</label>
        <div class="col-xs-12 col-sm-4">              
            <select  id="c-switch" class="form-control selectpicker" name="row[switch]">
                {foreach name="switchList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.switch"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
        <label class="control-label col-xs-12 col-sm-2">{:__('Source')}:</label>
        <div class="col-xs-12 col-sm-4">
                        
            <select  id="c-source" class="form-control selectpicker" name="row[source]">
                {foreach name="sourceList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.source"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group" data-favisible="type=3">
        <label class="control-label col-xs-12 col-sm-2">{:__('包含物料')}:</label>
        <div class="col-xs-12 col-sm-9">   
            <input id="c-inventory_id" name="row[inv_ids]" type="hidden" value="{$row.inv_ids|htmlentities}" >
            <input id="c-inventory_name" disabled data-source="information/inventory/index" class="form-control selectpage" type="text" data-multiple="false" value="{$row.inv_ids|htmlentities}">
        </div>
        <a href="javascript:;"  id="choose-inventory" style="margin-left: -15px;"  class="col-sm-1 btn btn-success" title="选择物料" ><i class="fa fa-plus"></i> 选择</a>
    </div>

    <div class="house-area" >
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Max_number')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-max_number" class="form-control" name="row[max_number]" type="text" value="{$row.max_number|htmlentities}">
        </div>
        <label class="control-label col-xs-12 col-sm-2">{:__('Max_weight')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-max_weight" class="form-control" name="row[max_weight]" type="text" value="{$row.max_weight|htmlentities}">
        </div>
     </div>
     <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Max_volume')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-max_volume" class="form-control" name="row[max_volume]" type="text" value="{$row.max_volume|htmlentities}">
        </div>
        <label class="control-label col-xs-12 col-sm-2">箱数限制:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-max_number" class="form-control" name="row[max_box]" type="text" value="{$row.max_box|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <!-- <label class="control-label col-xs-12 col-sm-2">托盘限制:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-max_number" class="form-control" name="row[max_tray]" type="text" value="{$row.max_tray|htmlentities}">
        </div> -->
        <label class="control-label col-xs-12 col-sm-2">批号:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-cBatch" class="form-control" name="row[cBatch]" type="text" value="{$row.cBatch|htmlentities}">
        </div>
      <div class="house-good">
        <label class="control-label col-xs-12 col-sm-2">{:__('Row_number')}:</label>
        <div class="col-xs-12 col-sm-4">
          <input id="c-row_number" data-rule="required;" class="form-control" name="row[row_number]" type="number" value="{$row.row_number|htmlentities}">
        </div>
      </div>
		
		<label class="control-label col-xs-12 col-sm-2">是否混放:</label>
        <div class="col-xs-12 col-sm-4">
            {:build_select('row[ifmix]', $radioArr,$row.ifmix,['disabled'=>true])}
        </div>
		
    </div>
        <div class="form-group">
          <label class="control-label col-xs-12 col-sm-2">长:</label>
          <div class="col-xs-12 col-sm-4">
            <input id="c-size" class="form-control" name="row[long]" type="text" value="{$row.long|htmlentities}">
          </div>
          <div class="house-good">
          <label class="control-label col-xs-12 col-sm-2">{:__('Column_number')}:</label>
          <div class="col-xs-12 col-sm-4">
            <input id="c-column_number" data-rule="required;" class="form-control" name="row[column_number]" type="number" value="{$row.column_number|htmlentities}">
          </div>
          </div>
          
          <label class="control-label col-xs-12 col-sm-2">属性:</label>
	      <div class="col-xs-12 col-sm-4">
	            {:build_select('row[wh_type]', $whTypeArr,$row.wh_type)}
	      </div>
        
     </div>

        <div class="form-group">
          <label class="control-label col-xs-12 col-sm-2">宽:</label>
          <div class="col-xs-12 col-sm-4">
            <input id="c-size" class="form-control" name="row[width]" type="text" value="{$row.width|htmlentities}">
          </div>
          <div class="house-good">
          <label class="control-label col-xs-12 col-sm-2">{:__('Layers_number')}:</label>
          <div class="col-xs-12 col-sm-4">
            <input id="c-layers_number" data-rule="required;" class="form-control" name="row[layers_number]" type="number" value="{$row.layers_number|htmlentities}">
          </div>
         </div>
         
         <label class="control-label col-xs-12 col-sm-2">批次管理:</label>
	      <div class="col-xs-12 col-sm-4">
	           {:build_select('row[ifbatch]', $radioArr,$row.ifbatch,['disabled'=>true])}
	      </div>
         
        </div>
         <div class="form-group">
           <label class="control-label col-xs-12 col-sm-2">高:</label>
           <div class="col-xs-12 col-sm-4">
             <input id="c-size" class="form-control" name="row[high]" type="text" value="{$row.high|htmlentities}">
           </div>
           <label class="control-label col-xs-12 col-sm-2">LED位置:</label>
           <div class="col-xs-12 col-sm-4">
             <input id="c-size" class="form-control" name="row[led_position]" type="text" value="{$row.led_position|htmlentities}">
           </div>
         </div>
    <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
            <div class="col-xs-12 col-sm-4">
                <textarea id="c-remark" class="form-control " rows="5" name="row[remark]" cols="50">{$row.remark|htmlentities}</textarea>
            </div>
        <label class="control-label col-xs-12 col-sm-2">二维码:</label>
        <div class="col-xs-12 col-sm-4">
            <img style="margin-top: -10px;" src="{$row.qrcode}"  >
        </div> 
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">对应ERP账套:</label>
        <div class="col-xs-12 col-sm-4">
            {:build_select('row[erp_acc_id]', $erp_account_arr,$row.erp_acc_id)}
        </div>
        <label class="control-label col-xs-12 col-sm-2">对应ERP仓库:</label>
        <div class="col-xs-12 col-sm-4">
            {:build_select('row[erp_warehouse_id]', $erp_stock_arr,$row.erp_warehouse_id)}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Inv_class')}:</label>
        <div class="col-xs-12 col-sm-10">
        	<input id="c-inv_class1_id" data-source="information/inventoryclass/getData?level=1" class="form-control selectpage" name="row[inv_class1_id]"  type="text" data-field="cInvCName" data-primary-key="id" value="{$row.inv_class1_id|htmlentities}" data-pagination="true" data-multiple="true"   data-format-item="{cInvCCode} - {cInvCName}"      >
        </div>
    </div>
    
    <div class="form-group">
    	<label class="control-label col-xs-12 col-sm-2">{:__('')}</label>
    	<div class="col-xs-12 col-sm-10">
        	<input id="c-inv_class2_id" data-source="information/inventoryclass/getData?level=2" class="form-control selectpage" name="row[inv_class2_id]"  type="text" data-field="cInvCName" data-primary-key="id" value="{$row.inv_class2_id|htmlentities}" data-pagination="true" data-multiple="true"   data-format-item="{cInvCCode} - {cInvCName}"      >
        </div>
    </div>
    
    <div class="form-group">
    	<label class="control-label col-xs-12 col-sm-2">{:__('')}</label>
        <div class="col-xs-12 col-sm-10">
        	<input id="c-inv_class3_id" data-source="information/inventoryclass/getData?level=3" class="form-control selectpage" name="row[inv_class3_id]"  type="text" data-field="cInvCName" data-primary-key="id" value="{$row.inv_class3_id|htmlentities}" data-pagination="true" data-multiple="true"     data-format-item="{cInvCCode} - {cInvCName}"    >
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
        <div class="col-xs-12 col-sm-10">
            <textarea id="c-description" class="form-control " rows="5" name="row[description]" cols="50">{$row.description|htmlentities}</textarea>
        </div>
    </div>
   
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
